<%@ page import="Apr06.NewsService.NewsService" %>
<%@ page import="Apr06.NewsServiceImpl.NewsServiceImpl" %>
<%@ page import="java.util.List" %>
<%@ page import="Apr06.pojo.News" %><%--
  Created by IntelliJ IDEA.
  User: wu
  Date: 2022/4/7
  Time: 14:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>news_detail表的查页面</title>
</head>
<body>
    <%
        NewsService newsService=new NewsServiceImpl();
        List<News> list1=newsService.ServiceSelectNewsAll1();
    %>
<div>
    <table>
        <%
            for (int i=0;i<list1.size();i++){
        %>
        <tr>
            <td>
                <%=list1.get(i).getId()%>
            </td>
            <td>
                <%=list1.get(i).getCategoryId()%>
            </td>
            <td>
                <%=list1.get(i).getTitle()%>
            </td>
            <td>
                <img src="<%=list1.get(i).getPicPath()%>">
                <%=list1.get(i).getPicPath()%>
            </td>
            <td><a href="UpdateManage1.jsp?newsid=<%=list1.get(i).getId()%>">修改</a></td>
        </tr>
        <%
            }
        %>
    </table>
</div>

</body>
</html>
